package com.ap.vogellatutorial;

import java.io.File;
import java.util.List;

public class ReadXML_with_StAx {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("reading file data.xml...");
		
		StaXParser read=new StaXParser();
		
	System.out.println(	);
	
	
	List<Item> items=read.readConfig(
			ReadXML_with_StAx.class.getResource("resources/data.xml").getPath());
	
	System.out.println(items.size());
	for(Item item : items){
		System.out.println(item);
	}
	}

}
